package cn.zhy.basic.service;

import cn.zhy.basic.query.BaseQuery;
import cn.zhy.basic.util.PageList;
import org.springframework.stereotype.Service;


import javax.management.Query;
import java.util.List;
public interface IBaseService<T> {

    List<T> loadAll(); //查询所有
    T loadById(Long id);//查询单个
    void save(T t);//添加
    void remove(Long id);           //移除
    void update(T t);//修改
   PageList<T> queryPage(BaseQuery baseQuery);

    void patchDelete(List<Long> ids);
}
